﻿@model MaymuseMS.Models.LogOnModel
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>美淼仓库管理系统</title>
    <link rel="stylesheet" href="@Url.Content("~/Content/css.css")" type="text/css" />
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
        $(document).keydown(function(event){
            if(event.keyCode == 13){
                $("sub").click();
            });
        });
    </script>
</head>
<body>
    <form id="log" method="post">
    <div id="connect">
        <div class="logo">
            @*<img src="/images/kefu.gif" />*@</div>
        <div class="text">
            <div class="text1">
                <img src="/images/logo.gif" /></div>
            <div class="text2">
                <table cellpadding="0" cellspacing="0" style="margin-top: 40px; margin-left: 10px;">
                    <tr>
                        <td>
                            <img src="/images/wenzi.gif" />
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" style="margin-top: 40px; margin-left: 10px;">
                    <tr>
                        <td>
                            用户名：
                        </td>
                        <td>@Html.TextBoxFor(m => m.UserName)@Html.ValidationMessageFor(m => m.UserName)
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 15px;">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            密&nbsp;&nbsp;码：
                        </td>
                        <td>@Html.PasswordFor(m => m.Password)@Html.ValidationMessageFor(m => m.Password)
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" style="margin-top: 30px; margin-left: 10px;">
                    <tr>
                        <td>@Html.CheckBoxFor(m => m.RememberMe)&nbsp;
                        </td>
                        <td>
                            <font style="font-size: 12px;">记住我</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            <input id="sub" type="image" src="/images/denglu.gif" onclick="javascript:document.getElementById('log').sumbit" />
                        </td>
                    </tr>
                </table>
                <div>@Html.ValidationSummary(true, "登录失败，请重试")</div>
            </div>
            <div class="xia">
            </div>
        </div>
    </div>
    </form>
</body>
</html>
@*
<h2>登录</h2>
<p>
    请输入用户名密码
</p>


@Html.ValidationSummary(true, "登录失败，请重试")

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>用户信息</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="登录" />
            </p>
        </fieldset>
    </div>
}
*@